package com.aletto.general_store.ui.popup;

import android.content.Context;
import android.content.Intent;

import com.aletto.general_store.R;
import com.aletto.general_store.ui.activities.WalletImportActivity;
import com.lxj.xpopup.core.BottomPopupView;

import androidx.annotation.NonNull;

public class ImportWalletPopup extends BottomPopupView {
    public ImportWalletPopup(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int getImplLayoutId() {
        return R.layout.popup_import_wallet;
    }

    @Override
    protected void onCreate() {
        super.onCreate();

        findViewById(R.id.iv_close).setOnClickListener(v -> dismiss());

        findViewById(R.id.confirm_button).setOnClickListener(v -> {
            getContext().startActivity(new Intent(getContext(), WalletImportActivity.class));
            dismiss();
        });

    }
}
